home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Problem with stringcopy
- Date: Sat, 06 Jan 96 13:12:43 GMT
- Organization: none
- Message-ID: <820933963snz@genesis.demon.co.uk>
- References: <4clguu$9fs@eagle.novo.dk>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4clguu$9fs@eagle.novo.dk> morb@novo.dk "Morten Brun" writes:
-
- >How do i do a partial stringcopy i.e. copy from a specific position in
- >a string and a certain numbers of bytes. I am looking for a function
- >like target = Stringcopy(source, startpos, length)
-
- target[0] = '\0';
- strncat(target, source+startpos, length);
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-